package com.asia5b.a5mall.middleware.model.cart

import com.asia5b.a5mall.middleware.model.base.BaseModel
import com.asia5b.a5mall.middleware.model.bean.SelectText
import com.asia5b.a5mall.middleware.widget.popup.PopupItemTextInterface
import com.google.gson.annotations.SerializedName

/**
 * Created by zhangyuncai on 2020/1/9.
 * 国际运输方式
 */
class TransModel : BaseModel(), PopupItemTextInterface, SelectText {
    override fun getText(): String {
        return goodsName
    }

    @SerializedName(value = "goodsName", alternate = ["transport_name"])
    var goodsName=""
    var id = 0
    var transport_type = 0

    override fun getSelectId(): Int {
        return id
    }


}

/*
{
"id": 1,
"transport_name": "海运大货（敏感货）",
"transport_en_name": "Sea Transportation",
"transport_logo": "A8\/A8\/ASIA\/C",
"transport_code": "ST",
"country_id": 4,
"region_id": 1,
"first_weight": 0,
"gon_weight": 1,
"ship_period": 22,
"transport_type": 0,
"is_abled": 1,
"billing_type": 0,
"first_cube": 0,
"gon_cube": "",
"cube_astrict_kg": null,
"transport_mark": 0,
"transport_style": 1,
"is_delete": 0,
"length": "150",
"wide": "150",
"height": "150",
"weight": "100",
"start_country_id": 12,
"is_enabled_density": -1,
"package_weight": null,
"sort": "2",
"start_warehouse_id": 12,
"max_weight": null,
"max_fee": null
},
 */